let updateUserFormRules = {
  role_id: [
    {
      required: true,
      message: "请输入role_id",
      trigger: "blur"
    },
    {
      type: "number",
      min: 1,
      max: 4,
      messasge: "权限等级1~4,请输入role_id",
      trigger: "blur"
    }
  ]
};
let options = [
  {
    value: "超级管理员",
    label: "超级管理员"
  },
  {
    value: "观察员",
    label: "观察员"
  }
];
let selectValues = [
  {
    value: 1,
    label: "居民"
  },
  {
    value: 2,
    label: "联动公益人"
  },
  {
    value: 3,
    label: "联动公益大使"
  },
  {
    value: 4,
    label: "工作人员"
  }
  // {
  //     value: 5,
  //     label: '观察员',
  // },
  // {
  //     value: 6,
  //     label: '超级管理员',
  // },
];
let pickerOptions = {
  shortcuts: [
    {
      text: "最近一周",
      onClick(picker) {
        const end = new Date();
        const start = new Date();
        start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
        picker.$emit("pick", [start, end]);
      }
    },
    {
      text: "最近一个月",
      onClick(picker) {
        const end = new Date();
        const start = new Date();
        start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
        picker.$emit("pick", [start, end]);
      }
    },
    {
      text: "最近三个月",
      onClick(picker) {
        const end = new Date();
        const start = new Date();
        start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
        picker.$emit("pick", [start, end]);
      }
    }
  ]
};
module.exports = {
  updateUserFormRules,
  options,
  selectValues,
  pickerOptions
};
